package com.submit.demo.service;

import com.submit.demo.common.api.CommonPage;
import com.submit.demo.model.Collector;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface CollectorService {
    boolean isCollectorExist(String phone);

    Integer createCollector(Collector collector);

    Integer deleteCollector(String id);

    Integer insertFromCsv(MultipartFile file);

    CommonPage<Collector> fetchAll(Integer currentPage, Integer pageSize);
}
